package cs304.p3.library.exceptions;

@SuppressWarnings("serial")
public class InvalidLoginException extends AbstractLDBException {
	
	private String jdbcUrl;
	private String username;
	private String password;
	
	public InvalidLoginException(String msg, String jdbcUrl, String username, String password) {
		super(msg);
		this.jdbcUrl = jdbcUrl;
		this.username = username;
		this.password = password;
	}
	
	public InvalidLoginException(String jdbcUrl, String username, String password) {
		this("Invalid Login Exception", jdbcUrl, username, password);
	}
	
	public String getJdbcUrl() {
		return jdbcUrl;
	}
	
	public String getUsername() {
		return username;
	}
	
	public String getPassword() {
		return password;
	}

	@Override
	public String getErrorMessage() {
		return "Your username or password is incorrect!";
	}

	@Override
	public String getErrorMessageTitle() {
		return "Login Error";
	}
}
